﻿using System.ComponentModel;

namespace D.Domain.SeedWork
{
    /// <summary>
    /// 基础实体
    /// </summary>
    public abstract class BaseEntity: EventBus
    {
        /// <summary>
        /// 实体的唯一标识
        /// </summary>
        public Guid Id { get; protected set; }

        /// <summary>
        /// 是否锁定
        /// </summary>
        public bool IsLocked { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }

        protected BaseEntity()
        {

        }
        protected BaseEntity(Guid id)
        {
            Id = id;
        }
    }
}
